package com.dreamers.core;

import com.dreamers.pathcore.Vector2;

import java.awt.*;

public class Collider2D {
    private Rectangle rectangle = new Rectangle();

    private Vector2 index = new Vector2();

    public Rectangle getRectangle() {
        return rectangle;
    }

    public void setRectangle(Rectangle rectangle) {
        this.rectangle = rectangle;
    }

    public Vector2 getIndex() {
        return index;
    }

    public void setIndex(Vector2 index) {
        this.index = index;
    }

    public Collider2D() {
    }

    @Override
    public String toString() {
        return "Collider2D{" +
                "rectangle=" + rectangle +
                ", index=" + index +
                '}';
    }
}
